package com.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients(basePackages = {"com.hongdou"})
//一个是扫描api项目，一个是本项目的扫描
@ComponentScan(basePackages = {"com.hongdou", "com.springcloud"})
public class ConsumerFeignDept {

    public static void main(String[] args) {
        SpringApplication.run(ConsumerFeignDept.class, args);
    }
}
